import 'package:json_annotation/json_annotation.dart';

part 'detailbyid_bean.g.dart';

@JsonSerializable()
class DetailbyidBean {
  String msg;
  int code;
  List<DataListBean4> data;

  DetailbyidBean({this.msg, this.code, this.data});

  DetailbyidBean.fromJson(Map<String, dynamic> json) {
    this.msg = json['msg'];
    this.code = json['code'];
    this.data = (json['data'] as List) != null
        ? (json['data'] as List).map((i) => DataListBean4.fromJson(i)).toList()
        : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['msg'] = this.msg;
    data['code'] = this.code;
    data['data'] =
        this.data != null ? this.data.map((i) => i.toJson()).toList() : null;
    return data;
  }
}

class DataListBean4 {
  String id;
  String name;
  String supid;
  String createtime;
  String updatetime;
  int type;

  DataListBean4(
      {this.id,
      this.name,
      this.supid,
      this.createtime,
      this.updatetime,
      this.type});

  DataListBean4.fromJson(Map<String, dynamic> json) {
    this.id = json['id'];
    this.name = json['name'];
    this.supid = json['supid'];
    this.createtime = json['createtime'];
    this.updatetime = json['updatetime'];
    this.type = json['type'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['name'] = this.name;
    data['supid'] = this.supid;
    data['createtime'] = this.createtime;
    data['updatetime'] = this.updatetime;
    data['type'] = this.type;
    return data;
  }
}
